<?php

error_reporting(E_ALL); // Set E_ALL for debuging

include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'elFinderConnector.class.php';
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'elFinder.class.php';
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'elFinderVolumeDriver.class.php';

// Required for MySQL storage connector
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'elFinderVolumeFileSystemMappedMySQL.class.php';


$opts = array(
    'debug' => true,
    'roots' => array(
        array(
            'driver' => 'FileSystemMappedMySQL',
            'host' => 'localhost',
            'user' => 'elfinder',
            'pass' => '123456',
            'db' => 'miyagigenerator',
            'files_table' => 'elfinder_file',
            'path' => 1
        ),
    )
);

// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();

